
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>配置文件 · 驱动管理</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="views/strategy.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    概要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Framework.html">
            
                <a href="../Framework.html">
            
                    
                    架构
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">src目录</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="api.html">
            
                <a href="api.html">
            
                    
                    api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="common.html">
            
                <a href="common.html">
            
                    
                    common
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="components.html">
            
                <a href="components.html">
            
                    
                    components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="filters.html">
            
                <a href="filters.html">
            
                    
                    filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="layout.html">
            
                <a href="layout.html">
            
                    
                    layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="mixins.html">
            
                <a href="mixins.html">
            
                    
                    mixins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="model.html">
            
                <a href="model.html">
            
                    
                    model
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="router.html">
            
                <a href="router.html">
            
                    
                    router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="store.html">
            
                <a href="store.html">
            
                    
                    store
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="styles.html">
            
                <a href="styles.html">
            
                    
                    styles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="types.html">
            
                <a href="types.html">
            
                    
                    types
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="utils.html">
            
                <a href="utils.html">
            
                    
                    utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="views/">
            
                <a href="views/">
            
                    
                    views
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.13.1" data-path="views/init.html">
            
                <a href="views/init.html">
            
                    
                    init
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.2" data-path="views/login.html">
            
                <a href="views/login.html">
            
                    
                    login
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.3" data-path="views/drive.html">
            
                <a href="views/drive.html">
            
                    
                    drive
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.4" data-path="views/logs.html">
            
                <a href="views/logs.html">
            
                    
                    logs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.5" data-path="views/strategy.html">
            
                <a href="views/strategy.html">
            
                    
                    strategy
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2.14" data-path="config.html">
            
                <a href="config.html">
            
                    
                    配置文件
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >配置文件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h3>
<blockquote>
<p>&#x9879;&#x76EE;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BF4;&#x660E;</p>
</blockquote>
<h5 id="devconfigts">dev.config.ts</h5>
<p>&#x81EA;&#x5B9A;&#x4E49;&#x5F00;&#x53D1;&#x73AF;&#x5883;vue&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002; &#x7AEF;&#x53E3;&#x53F7;&#xFF0C;&#x670D;&#x52A1;&#x7AEF;&#x4EE3;&#x7406;&#xFF0C;IP&#x7B49;&#x5728;&#x6B64;&#x5904;&#x914D;&#x7F6E;</p>
<pre class="language-"><code class="lang-javascript"><span class="token comment">/**
 * proxy
 */</span>
<span class="token keyword">const</span> DevConf <span class="token operator">=</span> <span class="token punctuation">{</span>
  Local<span class="token operator">:</span> <span class="token string">&quot;http://127.0.0.1:3000&quot;</span><span class="token punctuation">,</span>
  Remote<span class="token operator">:</span> <span class="token string">&quot;http://172.25.73.17:50001&quot;</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>

<span class="token keyword">const</span> target <span class="token operator">=</span> DevConf<span class="token punctuation">.</span>Remote<span class="token punctuation">;</span>

exports<span class="token punctuation">.</span>DevServer <span class="token operator">=</span> <span class="token punctuation">{</span>
  host<span class="token operator">:</span> <span class="token string">&quot;localhost&quot;</span><span class="token punctuation">,</span>
  port<span class="token operator">:</span> <span class="token number">8080</span><span class="token punctuation">,</span>
  https<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
  hot<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// &#x5F00;&#x542F;&#x70ED;&#x6A21;&#x5757;&#x52A0;&#x8F7D;</span>
  proxy<span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token string">&quot;/api&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      target<span class="token punctuation">,</span>
      changeOrigin<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
      pathRewrite<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token string">&quot;^/api&quot;</span><span class="token operator">:</span> <span class="token string">&quot;/&quot;</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre>
<h5 id="vueconfigjs">vue.config.js</h5>
<p>vue&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x65E0;&#x9700;&#x5728;&#x5904;&#x7406;</p>
<pre class="language-"><code class="lang-javascript"><span class="token keyword">const</span> <span class="token punctuation">{</span> DevServer <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">&quot;./dev.config.js&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  <span class="token comment">// &#x57FA;&#x672C;&#x8DEF;&#x5F84;</span>
  publicPath<span class="token operator">:</span> <span class="token string">&quot;./&quot;</span><span class="token punctuation">,</span>
  <span class="token comment">// &#x8F93;&#x51FA;&#x6587;&#x4EF6;&#x76EE;&#x5F55;</span>
  outputDir<span class="token operator">:</span> <span class="token string">&quot;dist&quot;</span><span class="token punctuation">,</span>
  <span class="token comment">// eslint-loader &#x662F;&#x5426;&#x5728;&#x4FDD;&#x5B58;&#x7684;&#x65F6;&#x5019;&#x68C0;&#x67E5;</span>
  lintOnSave<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
  <span class="token comment">// use the full build with in-browser compiler?</span>
  <span class="token comment">// compiler: false,</span>
  <span class="token comment">// webpack&#x914D;&#x7F6E;</span>
  <span class="token function-variable function">chainWebpack</span><span class="token operator">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token function-variable function">configureWebpack</span><span class="token operator">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token comment">// vue-loader &#x914D;&#x7F6E;&#x9879;</span>
  <span class="token comment">// vueLoader: {},</span>
  <span class="token comment">// &#x751F;&#x4EA7;&#x73AF;&#x5883;&#x662F;&#x5426;&#x751F;&#x6210; sourceMap &#x6587;&#x4EF6;git@gitlab-spd2k:spd2k/rits_driver.gitgit@gitlab-spd2k:spd2k/rits_driver.git</span>
  productionSourceMap<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
  <span class="token comment">// css&#x76F8;&#x5173;&#x914D;&#x7F6E;</span>
  css<span class="token operator">:</span> <span class="token punctuation">{</span>
    extract<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token comment">// &#x5F00;&#x542F; CSS source maps?</span>
    sourceMap<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
    <span class="token comment">// css&#x9884;&#x8BBE;&#x5668;&#x914D;&#x7F6E;&#x9879;</span>
    loaderOptions<span class="token operator">:</span> <span class="token punctuation">{</span>
      less<span class="token operator">:</span> <span class="token punctuation">{</span>
        modifyVars<span class="token operator">:</span> <span class="token punctuation">{</span>
          <span class="token string">&quot;menu-dark-bg&quot;</span><span class="token operator">:</span> <span class="token string">&quot;#2F4056&quot;</span>
          <span class="token comment">// &quot;primary-color&quot;: &quot;#1DA57A&quot;,</span>
          <span class="token comment">// &quot;link-color&quot;: &quot;#1DA57A&quot;,</span>
          <span class="token comment">// &quot;border-radius-base&quot;: &quot;2px&quot;,</span>
          <span class="token comment">// &quot;success-color&quot;: &quot;red&quot;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        javascriptEnabled<span class="token operator">:</span> <span class="token boolean">true</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token comment">// &#x542F;&#x7528; CSS modules for all css / pre-processor files.</span>
    requireModuleExtension<span class="token operator">:</span> <span class="token boolean">true</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token comment">// use thread-loader for babel &amp; TS in production build</span>
  <span class="token comment">// enabled by default if the machine has more than 1 cores</span>
  parallel<span class="token operator">:</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">&quot;os&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">cpus</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span>length <span class="token operator">&gt;</span> <span class="token number">1</span><span class="token punctuation">,</span>
  <span class="token comment">// &#x662F;&#x5426;&#x542F;&#x7528;dll</span>
  <span class="token comment">// dll: false,</span>
  <span class="token comment">// webpack-dev-server &#x76F8;&#x5173;&#x914D;&#x7F6E;</span>
  devServer<span class="token operator">:</span> DevServer<span class="token punctuation">,</span>
  <span class="token comment">// &#x7B2C;&#x4E09;&#x65B9;&#x63D2;&#x4EF6;&#x914D;&#x7F6E;</span>
  pluginOptions<span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token comment">// ...</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre>
<h5 id="eslintrcjs">.eslintrc.js</h5>
<p>eslint&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;&#x89C4;&#x8303;&#x4EE3;&#x7801;&#x683C;&#x5F0F;&#x89C4;&#x8303;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; vscode &#x5B89;&#x88C5; <strong>Vetur</strong> &#x683C;&#x5F0F;&#x5316;&#x5DE5;&#x5177;&#x3002;</p>
<p>&#x5177;&#x4F53;&#x914D;&#x7F6E;&#x5185;&#x5BB9;&#x53C2;&#x8003;&#xFF1A;</p>
<pre class="language-"><code class="lang-javascript">module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  <span class="token comment">/**
   * &#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;ESLint &#x4F1A;&#x5728;&#x6240;&#x6709;&#x7236;&#x7EA7;&#x76EE;&#x5F55;&#x91CC;&#x5BFB;&#x627E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x4E00;&#x76F4;&#x5230;&#x6839;&#x76EE;&#x5F55;&#x3002;&#x5982;&#x679C;&#x4F60;&#x60F3;&#x8981;&#x4F60;&#x6240;&#x6709;&#x9879;&#x76EE;&#x90FD;&#x9075;&#x5FAA;&#x4E00;&#x4E2A;&#x7279;&#x5B9A;&#x7684;&#x7EA6;&#x5B9A;&#x65F6;&#xFF0C;&#x8FD9;&#x5C06;&#x4F1A;&#x5F88;&#x6709;&#x7528;&#xFF0C;&#x4F46;&#x6709;&#x65F6;&#x5019;&#x4F1A;&#x5BFC;&#x81F4;&#x610F;&#x60F3;&#x4E0D;&#x5230;&#x7684;&#x7ED3;&#x679C;&#x3002;
   * &#x4E3A;&#x4E86;&#x5C06; ESLint &#x9650;&#x5236;&#x5230;&#x4E00;&#x4E2A;&#x7279;&#x5B9A;&#x7684;&#x9879;&#x76EE;&#xFF0C;&#x5728;&#x4F60;&#x9879;&#x76EE;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x7684; package.json &#x6587;&#x4EF6;&#x6216;&#x8005; .eslintrc.* &#x6587;&#x4EF6;&#x91CC;&#x7684; eslintConfig &#x5B57;&#x6BB5;&#x4E0B;&#x8BBE;&#x7F6E; &quot;root&quot;: true&#x3002;
   * ESLint &#x4E00;&#x65E6;&#x53D1;&#x73B0;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x6709; &quot;root&quot;: true&#xFF0C;&#x5B83;&#x5C31;&#x4F1A;&#x505C;&#x6B62;&#x5728;&#x7236;&#x7EA7;&#x76EE;&#x5F55;&#x4E2D;&#x5BFB;&#x627E;&#x3002;
   */</span>
  root<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
  <span class="token comment">/**
   * &#x6307;&#x5B9A;&#x4F60;&#x60F3;&#x542F;&#x7528;&#x7684;&#x73AF;&#x5883;
   */</span>
  env<span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token comment">//&#x8981;&#x989D;&#x5916;&#x652F;&#x6301;&#x65B0;&#x7684; ES6 &#x5168;&#x5C40;&#x53D8;&#x91CF;</span>
    es6<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    node<span class="token operator">:</span> <span class="token boolean">true</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token comment">/**
   * &#x5F00;&#x542F;&#x63A8;&#x8350;&#x914D;&#x7F6E;&#x4FE1;&#x606F;
   */</span>
  <span class="token keyword">extends</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;plugin:vue/essential&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;eslint:recommended&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;@vue/typescript&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
  <span class="token comment">/**
   * &#x542F;&#x7528;&#x7684;&#x89C4;&#x5219;&#x53CA;&#x5404;&#x81EA;&#x7684;&#x9519;&#x8BEF;&#x7EA7;&#x522B;
   */</span>
  rules<span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token string">&quot;no-console&quot;</span><span class="token operator">:</span> process<span class="token punctuation">.</span>env<span class="token punctuation">.</span><span class="token constant">NODE_ENV</span> <span class="token operator">===</span> <span class="token string">&quot;production&quot;</span> <span class="token operator">?</span> <span class="token number">2</span> <span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">// &#x7981;&#x6B62;&#x7528;console</span>
    <span class="token string">&quot;no-debugger&quot;</span><span class="token operator">:</span> process<span class="token punctuation">.</span>env<span class="token punctuation">.</span><span class="token constant">NODE_ENV</span> <span class="token operator">===</span> <span class="token string">&quot;production&quot;</span> <span class="token operator">?</span> <span class="token number">2</span> <span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
    <span class="token string">&quot;space-before-function-paren&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token comment">//function&#x5173;&#x952E;&#x5B57;&#x4E0E;&#x5F00;&#x59CB;&#x53C2;&#x6570;&#x4E4B;&#x95F4;&#x5141;&#x8BB8;&#x6709;&#x7A7A;&#x683C;</span>
      <span class="token string">&quot;error&quot;</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        anonymous<span class="token operator">:</span> <span class="token string">&quot;always&quot;</span><span class="token punctuation">,</span> <span class="token comment">//&#x662F;&#x7528;&#x4E8E;&#x533F;&#x540D;&#x51FD;&#x6570;&#x8868;&#x8FBE;&#x5F0F; &#xFF08;&#x4F8B;&#x5982;function () {}&#xFF09;&#x3002;</span>

        named<span class="token operator">:</span> <span class="token string">&quot;never&quot;</span><span class="token punctuation">,</span> <span class="token comment">//&#x662F;&#x7528;&#x4E8E;&#x547D;&#x540D;&#x51FD;&#x6570;&#x8868;&#x8FBE;&#x5F0F; &#xFF08;&#x4F8B;&#x5982;function foo () {}&#xFF09;&#x3002;</span>

        asyncArrow<span class="token operator">:</span> <span class="token string">&quot;always&quot;</span> <span class="token comment">//&#x662F;&#x7528;&#x4E8E;&#x5F02;&#x6B65;&#x7BAD;&#x5934;&#x51FD;&#x6570;&#x8868;&#x8FBE;&#x5F0F;&#xFF08;&#x4F8B;&#x5982;async () =&gt; {}&#xFF09;&#x3002;</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span>
    camelcase<span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token comment">//&#x5F3A;&#x5236;&#x9A7C;&#x5CF0;&#x6CD5;&#x547D;&#x540D;</span>
      <span class="token number">0</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        properties<span class="token operator">:</span> <span class="token string">&quot;always&quot;</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span>
    <span class="token string">&quot;comma-dangle&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token string">&quot;never&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#xFF08;&#x5BF9;&#x8C61;&#x6700;&#x540E;&#x4E00;&#x9879;&#x7701;&#x7565;&#x9017;&#x53F7;&#xFF09;</span>
    <span class="token string">&quot;comma-spacing&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token comment">// &#x63A7;&#x5236;&#x9017;&#x53F7;&#x524D;&#x540E;&#x7684;&#x7A7A;&#x683C;</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        before<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
        after<span class="token operator">:</span> <span class="token boolean">true</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span>
    <span class="token string">&quot;comma-style&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token string">&quot;last&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x63A7;&#x5236;&#x9017;&#x53F7;&#x5728;&#x884C;&#x5C3E;&#x51FA;&#x73B0;&#x8FD8;&#x662F;&#x5728;&#x884C;&#x9996;&#x51FA;&#x73B0;</span>
    <span class="token string">&quot;constructor-super&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">// &#x5F3A;&#x5236;&#x5728;&#x5B50;&#x7C7B;&#x6784;&#x9020;&#x51FD;&#x6570;&#x4E2D;&#x7528;super()&#x8C03;&#x7528;&#x7236;&#x7C7B;&#x6784;&#x9020;&#x51FD;&#x6570;&#xFF0C;TypeScrip&#x7684;&#x7F16;&#x8BD1;&#x5668;&#x4E5F;&#x4F1A;&#x63D0;&#x793A;</span>
    <span class="token string">&quot;key-spacing&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token comment">//&#x5BF9;&#x8C61;&#x5B57;&#x9762;&#x91CF;&#x4E2D;&#x5192;&#x53F7;&#x7684;&#x524D;&#x540E;&#x7A7A;&#x683C;</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        beforeColon<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
        afterColon<span class="token operator">:</span> <span class="token boolean">true</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span>
    <span class="token string">&quot;keyword-spacing&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token comment">//if (condition) { ... }   // &#x2713; ok</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        before<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
        after<span class="token operator">:</span> <span class="token boolean">true</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span>
    eqeqeq<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">// &#x4F7F;&#x7528; === &#x66FF;&#x4EE3; ==</span>
    <span class="token string">&quot;handle-callback-err&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//nodejs &#x5904;&#x7406;&#x9519;&#x8BEF;</span>
    <span class="token string">&quot;new-parens&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//new&#x65F6;&#x5FC5;&#x987B;&#x52A0;&#x5C0F;&#x62EC;&#x53F7;</span>
    <span class="token string">&quot;no-const-assign&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x4FEE;&#x6539;const&#x58F0;&#x660E;&#x7684;&#x53D8;&#x91CF;</span>
    <span class="token string">&quot;no-dupe-args&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x51FD;&#x6570;&#x53C2;&#x6570;&#x4E0D;&#x80FD;&#x91CD;&#x590D;</span>
    <span class="token string">&quot;no-dupe-class-members&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E0D;&#x5141;&#x8BB8;&#x7C7B;&#x4E2D;&#x51FA;&#x73B0;&#x91CD;&#x590D;&#x7684;&#x58F0;&#x660E;</span>
    <span class="token string">&quot;no-dupe-keys&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x5728;&#x521B;&#x5EFA;&#x5BF9;&#x8C61;&#x5B57;&#x9762;&#x91CF;&#x65F6;&#x4E0D;&#x5141;&#x8BB8;&#x952E;&#x91CD;&#x590D; {a:1,a:1}</span>
    <span class="token string">&quot;no-duplicate-case&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//switch&#x4E2D;&#x7684;case&#x6807;&#x7B7E;&#x4E0D;&#x80FD;&#x91CD;&#x590D;</span>
    <span class="token string">&quot;no-extra-bind&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x4E0D;&#x5FC5;&#x8981;&#x7684;&#x51FD;&#x6570;&#x7ED1;&#x5B9A;</span>
    <span class="token string">&quot;no-extra-boolean-cast&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x4E0D;&#x5FC5;&#x8981;&#x7684;bool&#x8F6C;&#x6362;</span>
    <span class="token string">&quot;no-extra-parens&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token string">&quot;functions&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x975E;&#x5FC5;&#x8981;&#x7684;&#x62EC;&#x53F7;</span>
    <span class="token string">&quot;no-fallthrough&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;switch&#x7A7F;&#x900F;</span>
    <span class="token string">&quot;no-floating-decimal&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x7701;&#x7565;&#x6D6E;&#x70B9;&#x6570;&#x4E2D;&#x7684;0 .5 3.</span>
    <span class="token string">&quot;no-func-assign&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x91CD;&#x590D;&#x7684;&#x51FD;&#x6570;&#x58F0;&#x660E;</span>
    <span class="token string">&quot;no-implied-eval&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x4F7F;&#x7528;&#x9690;&#x5F0F;eval</span>
    <span class="token string">&quot;no-inner-declarations&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token string">&quot;functions&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x5728;&#x5757;&#x8BED;&#x53E5;&#x4E2D;&#x4F7F;&#x7528;&#x58F0;&#x660E;&#xFF08;&#x53D8;&#x91CF;&#x6216;&#x51FD;&#x6570;&#xFF09;</span>
    <span class="token string">&quot;no-invalid-regexp&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x65E0;&#x6548;&#x7684;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;</span>
    <span class="token string">&quot;no-irregular-whitespace&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E0D;&#x80FD;&#x6709;&#x4E0D;&#x89C4;&#x5219;&#x7684;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;no-iterator&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x4F7F;&#x7528;__iterator__ &#x5C5E;&#x6027;</span>
    <span class="token string">&quot;no-label-var&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//label&#x540D;&#x4E0D;&#x80FD;&#x4E0E;var&#x58F0;&#x660E;&#x7684;&#x53D8;&#x91CF;&#x540D;&#x76F8;&#x540C;</span>
    <span class="token string">&quot;no-labels&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        <span class="token comment">//&#x7981;&#x6B62;&#x6807;&#x7B7E;&#x58F0;&#x660E;</span>
        allowLoop<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
        allowSwitch<span class="token operator">:</span> <span class="token boolean">false</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span>
    <span class="token string">&quot;no-lone-blocks&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x4E0D;&#x5FC5;&#x8981;&#x7684;&#x5D4C;&#x5957;&#x5757;</span>
    <span class="token string">&quot;no-multi-spaces&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E0D;&#x80FD;&#x7528;&#x591A;&#x4F59;&#x7684;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;no-multiple-empty-lines&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        max<span class="token operator">:</span> <span class="token number">1</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x7A7A;&#x884C;&#x6700;&#x591A;&#x4E0D;&#x80FD;&#x8D85;&#x8FC7;1&#x884C;</span>
    <span class="token string">&quot;no-obj-calls&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E0D;&#x80FD;&#x8C03;&#x7528;&#x5185;&#x7F6E;&#x7684;&#x5168;&#x5C40;&#x5BF9;&#x8C61;&#xFF0C;&#x6BD4;&#x5982;Math() JSON()</span>
    <span class="token string">&quot;no-redeclare&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">// &#x5728;&#x540C;&#x4E00;&#x4E2A;&#x4F5C;&#x7528;&#x57DF;&#x4E2D;&#x7981;&#x6B62;&#x591A;&#x6B21;&#x91CD;&#x590D;&#x5B9A;&#x4E49;</span>
    <span class="token string">&quot;no-spaced-func&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x51FD;&#x6570;&#x8C03;&#x7528;&#x65F6; &#x51FD;&#x6570;&#x540D;&#x4E0E;()&#x4E4B;&#x95F4;&#x4E0D;&#x80FD;&#x6709;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;no-sparse-arrays&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x7A00;&#x758F;&#x6570;&#x7EC4;&#xFF0C; [1,,2]</span>
    <span class="token string">&quot;no-this-before-super&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x5728;&#x8C03;&#x7528;super()&#x4E4B;&#x524D;&#x4E0D;&#x80FD;&#x4F7F;&#x7528;this&#x6216;super</span>
    <span class="token string">&quot;no-throw-literal&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x629B;&#x51FA;&#x5B57;&#x9762;&#x91CF;&#x9519;&#x8BEF; throw &quot;error&quot;;</span>
    <span class="token string">&quot;no-trailing-spaces&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E00;&#x884C;&#x7ED3;&#x675F;&#x540E;&#x9762;&#x4E0D;&#x8981;&#x6709;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;no-undef&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E0D;&#x80FD;&#x6709;&#x672A;&#x5B9A;&#x4E49;&#x7684;&#x53D8;&#x91CF;</span>
    <span class="token string">&quot;no-unexpected-multiline&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//&#x907F;&#x514D;&#x591A;&#x884C;&#x8868;&#x8FBE;&#x5F0F;</span>
    <span class="token string">&quot;no-unmodified-loop-condition&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//&#x68C0;&#x67E5;&#x5F15;&#x7528;&#x662F;&#x5426;&#x5728;&#x5FAA;&#x73AF;&#x4E2D;&#x88AB;&#x4FEE;&#x6539;</span>
    <span class="token string">&quot;no-unneeded-ternary&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x4E0D;&#x5FC5;&#x8981;&#x7684;&#x5D4C;&#x5957; var isYes = answer === 1 ? true : false;</span>
    <span class="token string">&quot;no-unreachable&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E0D;&#x80FD;&#x6709;&#x65E0;&#x6CD5;&#x6267;&#x884C;&#x7684;&#x4EE3;&#x7801;</span>
    <span class="token string">&quot;no-unsafe-finally&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
    <span class="token string">&quot;no-useless-call&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x4E0D;&#x5FC5;&#x8981;&#x7684;call&#x548C;apply</span>
    <span class="token string">&quot;no-useless-computed-key&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//&#x6CA1;&#x6709;&#x5FC5;&#x8981;&#x4F7F;&#x7528;&#x5E26;&#x6587;&#x5B57;&#x7684;&#x8BA1;&#x7B97;&#x5C5E;&#x6027;</span>
    <span class="token string">&quot;no-useless-constructor&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x53EF;&#x4EE5;&#x5728;&#x4E0D;&#x6539;&#x53D8;&#x7C7B;&#x7684;&#x5DE5;&#x4F5C;&#x65B9;&#x5F0F;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x5B89;&#x5168;&#x5730;&#x79FB;&#x9664;&#x7684;&#x7C7B;&#x6784;&#x9020;&#x51FD;&#x6570;</span>
    <span class="token string">&quot;no-useless-escape&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
    <span class="token string">&quot;no-whitespace-before-property&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
    <span class="token string">&quot;no-with&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x7528;with</span>
    <span class="token string">&quot;one-var&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//&#x8FDE;&#x7EED;&#x58F0;&#x660E;</span>
    <span class="token string">&quot;operator-linebreak&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token string">&quot;after&quot;</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        overrides<span class="token operator">:</span> <span class="token punctuation">{</span>
          <span class="token string">&quot;?&quot;</span><span class="token operator">:</span> <span class="token string">&quot;before&quot;</span><span class="token punctuation">,</span>
          <span class="token string">&quot;:&quot;</span><span class="token operator">:</span> <span class="token string">&quot;before&quot;</span>
        <span class="token punctuation">}</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x6362;&#x884C;&#x65F6;&#x8FD0;&#x7B97;&#x7B26;&#x5728;&#x884C;&#x5C3E;&#x8FD8;&#x662F;&#x884C;&#x9996;</span>
    <span class="token string">&quot;padded-blocks&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//&#x5757;&#x8BED;&#x53E5;&#x5185;&#x884C;&#x9996;&#x884C;&#x5C3E;&#x662F;&#x5426;&#x8981;&#x7A7A;&#x884C;</span>
    quotes<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//[1, &apos;double&apos;], //&#x5F15;&#x53F7;&#x7C7B;&#x578B; `` &quot;&quot; &apos;&apos;</span>
    semi<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">,</span> <span class="token string">&quot;never&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x7981;&#x6B62;&#x7528;&#x5206;&#x53F7;</span>
    <span class="token string">&quot;semi-spacing&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        before<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
        after<span class="token operator">:</span> <span class="token boolean">true</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x5206;&#x53F7;&#x524D;&#x540E;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;space-in-parens&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token string">&quot;never&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x5C0F;&#x62EC;&#x53F7;&#x91CC;&#x9762;&#x8981;&#x4E0D;&#x8981;&#x6709;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;space-infix-ops&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E2D;&#x7F00;&#x64CD;&#x4F5C;&#x7B26;&#x5468;&#x56F4;&#x8981;&#x4E0D;&#x8981;&#x6709;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;space-unary-ops&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        words<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
        nonwords<span class="token operator">:</span> <span class="token boolean">false</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x4E00;&#x5143;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x524D;/&#x540E;&#x8981;&#x4E0D;&#x8981;&#x52A0;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;spaced-comment&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token comment">//&#x6CE8;&#x91CA;&#x98CE;&#x683C;&#x4E0D;&#x8981;&#x6709;&#x7A7A;&#x683C;&#x4EC0;&#x4E48;&#x7684;</span>
    <span class="token string">&quot;use-isnan&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x7981;&#x6B62;&#x6BD4;&#x8F83;&#x65F6;&#x4F7F;&#x7528;NaN&#xFF0C;&#x53EA;&#x80FD;&#x7528;isNaN()</span>
    <span class="token string">&quot;valid-typeof&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x5FC5;&#x987B;&#x4F7F;&#x7528;&#x5408;&#x6CD5;&#x7684;typeof&#x7684;&#x503C;</span>
    <span class="token string">&quot;wrap-iife&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token string">&quot;any&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x7ACB;&#x5373;&#x6267;&#x884C;&#x51FD;&#x6570;&#x8868;&#x8FBE;&#x5F0F;&#x7684;&#x5C0F;&#x62EC;&#x53F7;&#x98CE;&#x683C;</span>
    <span class="token string">&quot;prefer-const&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token comment">//&#x9996;&#x9009;const</span>
    <span class="token string">&quot;object-curly-spacing&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token number">2</span><span class="token punctuation">,</span>
      <span class="token string">&quot;always&quot;</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        objectsInObjects<span class="token operator">:</span> <span class="token boolean">false</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x5927;&#x62EC;&#x53F7;&#x5185;&#x662F;&#x5426;&#x5141;&#x8BB8;&#x4E0D;&#x5FC5;&#x8981;&#x7684;&#x7A7A;&#x683C;</span>
    <span class="token string">&quot;array-bracket-spacing&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token string">&quot;never&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x662F;&#x5426;&#x5141;&#x8BB8;&#x975E;&#x7A7A;&#x6570;&#x7EC4;&#x91CC;&#x9762;&#x6709;&#x591A;&#x4F59;&#x7684;&#x7A7A;&#x683C;</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token comment">/**
   * &#x8BBE;&#x7F6E;&#x89E3;&#x6790;&#x5668;&#x9009;&#x9879;&#xFF08;&#x5FC5;&#x987B;&#x8BBE;&#x7F6E;&#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#xFF09;
   */</span>
  parserOptions<span class="token operator">:</span> <span class="token punctuation">{</span>
    parser<span class="token operator">:</span> <span class="token string">&quot;@typescript-eslint/parser&quot;</span><span class="token punctuation">,</span>
    <span class="token comment">//&#x542F;&#x7528; ES9 &#x989D;&#x5916;&#x8BED;&#x6CD5;&#x652F;&#x6301;</span>
    ecmaVersion<span class="token operator">:</span> <span class="token number">9</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  overrides<span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token punctuation">{</span>
      files<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;**/__tests__/*.{j,t}s?(x)&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
      env<span class="token operator">:</span> <span class="token punctuation">{</span>
        mocha<span class="token operator">:</span> <span class="token boolean">true</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre>
<h5 id="babelconfigjs">babel.config.js</h5>
<p>babel&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;es5&#x7684;&#x8F6C;&#x6362;&#x548C;&#x652F;&#x6301;&#x3002;&#x65E0;&#x9700;&#x5728;&#x5904;&#x7406;&#x3002;</p>
<pre class="language-"><code class="lang-javascript">module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  presets<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;@vue/cli-plugin-babel/preset&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
  plugins<span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token punctuation">[</span>
      <span class="token string">&quot;import&quot;</span><span class="token punctuation">,</span>
      <span class="token punctuation">{</span>
        libraryName<span class="token operator">:</span> <span class="token string">&quot;ant-design-vue&quot;</span><span class="token punctuation">,</span>
        libraryDirectory<span class="token operator">:</span> <span class="token string">&quot;es&quot;</span><span class="token punctuation">,</span>
        style<span class="token operator">:</span> <span class="token boolean">true</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</code></pre>
<h5 id="tsconfigjson">tsconfig.json</h5>
<p>typescript&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x65E0;&#x9700;&#x5728;&#x5904;&#x7406;&#x3002;</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;compilerOptions&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token property">&quot;target&quot;</span><span class="token operator">:</span> <span class="token string">&quot;esnext&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;module&quot;</span><span class="token operator">:</span> <span class="token string">&quot;esnext&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;strict&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token property">&quot;jsx&quot;</span><span class="token operator">:</span> <span class="token string">&quot;preserve&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;importHelpers&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token property">&quot;moduleResolution&quot;</span><span class="token operator">:</span> <span class="token string">&quot;node&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;experimentalDecorators&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token property">&quot;esModuleInterop&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token property">&quot;allowSyntheticDefaultImports&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token property">&quot;sourceMap&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token property">&quot;baseUrl&quot;</span><span class="token operator">:</span> <span class="token string">&quot;.&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;types&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token string">&quot;webpack-env&quot;</span><span class="token punctuation">,</span>
      <span class="token string">&quot;mocha&quot;</span><span class="token punctuation">,</span>
      <span class="token string">&quot;chai&quot;</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span>
    <span class="token property">&quot;paths&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token property">&quot;@/*&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
        <span class="token string">&quot;src/*&quot;</span>
      <span class="token punctuation">]</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token property">&quot;lib&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token string">&quot;esnext&quot;</span><span class="token punctuation">,</span>
      <span class="token string">&quot;dom&quot;</span><span class="token punctuation">,</span>
      <span class="token string">&quot;dom.iterable&quot;</span><span class="token punctuation">,</span>
      <span class="token string">&quot;scripthost&quot;</span>
    <span class="token punctuation">]</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token property">&quot;include&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;src/**/*.ts&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;src/**/*.tsx&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;src/**/*.vue&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;tests/**/*.ts&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;tests/**/*.tsx&quot;</span>
  <span class="token punctuation">]</span><span class="token punctuation">,</span>
  <span class="token property">&quot;exclude&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;node_modules&quot;</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="views/strategy.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: strategy">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"配置文件","level":"2.14","depth":1,"previous":{"title":"strategy","level":"2.13.5","depth":2,"path":"src/views/strategy.md","ref":"src/views/strategy.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","-lunr","-search","search-pro","-highlight","prism"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"chapter-fold":{},"search-pro":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"驱动管理","language":"zh-hans","gitbook":"3.2.3","description":"驱动管理Web端"},"file":{"path":"src/config.md","mtime":"2020-02-24T03:16:59.516Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-03T02:33:20.679Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

